//
//  BookingTableViewCell.m
//  ceshiNET
//
//  Created by mk on 15/8/18.
//  Copyright (c) 2015年 mk. All rights reserved.
//

#import "BookingTableViewCell.h"

@implementation BookingTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel = [[UILabel alloc]init];
        [self addSubview:self.titleLabel];
        
        self.textF = [[UITextField alloc]init];
        [self addSubview:self.textF];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(30, 0, self.frame.size.width / 4 , self.frame.size.height);
    self.textF.frame = CGRectMake(self.frame.size.width / 3 , 0, 3 * self.frame.size.width / 4, self.frame.size.height);
    
}
@end
